package grape.composite.rest.feedback.mapper;

import grape.composite.service.feedback.po.Feedback;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.composite.rest.feedback.form.FeedbackCreateForm;
import grape.composite.rest.feedback.form.FeedbackReplyForm;
import grape.composite.rest.feedback.form.FeedbackListPageForm;
import grape.composite.rest.feedback.vo.FeedbackVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 意见反馈表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-03-15
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface FeedbackWebMapper extends WebMapper<FeedbackVo, Feedback> {

    Feedback formToPo(FeedbackCreateForm f);
    Feedback formToPo(FeedbackReplyForm f);
    Feedback formToPo(FeedbackListPageForm f);
}
